<template>
  <t-layout>
    <t-header>
      <t-head-menu>
        <template #logo>
          <img src="./assets/logo.png" alt="logo" />
          <span>单词学习系统</span>
        </template>
        <t-menu-item value="user" to="/user">用户管理</t-menu-item>
        <t-menu-item value="word" to="/word">单词管理</t-menu-item>
        <t-menu-item value="category" to="/category">分类管理</t-menu-item>
        <t-menu-item value="audio" to="/audio">音频管理</t-menu-item>
      </t-head-menu>
    </t-header>
    <t-content>
      <router-view></router-view>
    </t-content>
  </t-layout>
</template>

<script setup lang="ts">
// 组件逻辑
</script>

<style>
.t-layout {
  height: 100vh;
}

.t-header {
  background-color: #fff;
  border-bottom: 1px solid #e7e7e7;
}

.t-head-menu {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 24px;
}

.t-head-menu__logo {
  display: flex;
  align-items: center;
  margin-right: 48px;
}

.t-head-menu__logo img {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}

.t-content {
  padding: 24px;
  background-color: #f5f5f5;
}
</style> 